package org.cbyyx.tc.model.dto.productRequest;

import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * 商品创建请求
 * @author cbyyx
 */
@Data
public class ProductCreateRequest {

    @NotBlank(message = "商品名称不能为空")
    private String name;

    @NotBlank(message = "商品描述不能为空")
    private String description;

    @NotBlank(message = "商品图片不能为空")
    private String image;

    @NotBlank(message = "商品价格不能为空")
    private Double price;

    @NotBlank(message = "商品库存不能为空")
    private Integer stock;

    @NotBlank(message = "商品分类不能为空")
    private String category;

}